define([], function () {
	var loadingObj;
    var myLoader = {
        init: function (game) {
        	loadingObj = new loading(game);
        	this.loadingText1 = game.add.text(196.5,751,"LOADING",{ fill: '#5b2910',fontSize: 32,fontWeight: 'normal',
//        		backgroundColor:'#fff'
        			});
        	this.loadingText2 = game.add.text(352,751,"0%",{ fill: '#5b2910',fontSize: 32,fontWeight: 'normal'});
        	this.loadingText3 = game.add.text(290,751,"...",{ fill: '#5b2910',fontSize: 32,fontWeight: 'normal'});
        	
        },
        onLoading: function (progress) {
        	myLoader.loadingText2.text = progress + "%";
        	myLoader.loadingText3.x = myLoader.loadingText2.width + 355; 
        	loadingObj.fTime_bar2.x = -212 + progress/100 * 355;
        }
    };
    return myLoader;
});